import Vue from 'vue'
import Vuex from 'vuex'

import mutations from './mutations'
import actions from './actions'
import getters from './getters'

Vue.use(Vuex)

const state = {
  cartList : []
}

export default new Vuex.Store({
  state,
  getters,
  mutations,
    // 放一些简单的操作
  actions,
    // 放一些异步操作和带有逻辑判断的操作
  modules: {
  }
})
